﻿namespace io.gitee.springsongs
{
    internal class Program
    {
        static int j = 1;
        static void Main(string[] args)
        {
            for (int i = 0; i < 10; i++)
            {
                Console.WriteLine(i);
            }

            for (int i = 0; i < 10; i++)
            {
                Console.WriteLine(i);
            }
            //以上两个i不冲突
            int j = 10;
            for (int i = 0; i < 10; i++)
            {
                //int j = 20;j冲突了
                Console.WriteLine(i+j);
            }
            Console.WriteLine(j);
            Console.WriteLine(Program.j);
        }
    }
}